package com.cqemme.activitiservice.feign;

import com.cqemme.activitiservice.feign.fallback.WebsocketServiceFallback;
import com.cqemme.comm.po.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * websocket服务
 * @author daibin
 */
@FeignClient(value = "websocket-service",fallback = WebsocketServiceFallback.class)
public interface WebsocketService {

    /**
     * 推送报警信息给熊涛涛
     *
     * @param
     * @return
     */
    @RequestMapping(value = "/push/receiveMessageInfo", method = RequestMethod.POST)
    @ResponseBody
    Result receiveMessageInfo(@RequestBody String alarmMessageInfo);

}
